﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfCustomerSuggestion.aspx.cs" Inherits="msBsc.WebUi.wMall.Public.wfCustomerSuggestion" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>地接客_网站建议</title>
    <link href="/themes/wStyle1/css/sLayout.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sHead.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sFoot.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/Public/splatform.css" rel="stylesheet" />
    <style>
        .platformText {
            width: 100%;
            height: 600px;
        }

        .show-row {
            width: 100%;
            margin-bottom: 10px;
        }

        .text-title {
            font-size: 16px;
            color: #808080;
            text-align: right;
            margin-right: 10px;
            font-weight: normal;
            width: 80px;
            display: table-cell;
            float: left;
        }

        .cust-input {
            width: 240px;
            height: 25px;
            line-height: 25px;
            display: table-cell;
        }

        .cust-textarea {
            width: 420px;
            height: 120px;
        }

        .cust-btn-submit, .cust-btn-reset {
            width: 100px;
            height: 30px;
            line-height: 30px;
            background-color: #3398dc;
            border: 0;
            margin-left: 90px;
            color: #fff;
            font-family: 微软雅黑;
            cursor: pointer;
        }

        .cust-btn-reset {
            margin-left: 5px;
            background-color: #7abd54;
        }

            .cust-btn-submit:hover, .cust-btn-reset:hover {
                opacity: 0.8;
            }
    </style>
</head>
<body>
    <div class="wf_all">
        <div id="divLoginInfo">
            <%=msBsc.WebUi.Code.QtHtmlGet.GetHeaderLoginInfo() %>
        </div>
        <div class="contentInfo">
            <ul class="platformMenu">
                <li class="headMenu"></li>
                <li class="intervalMenu"></li>
                <li class="contentMenu"><a href="javascript:void(0)">关于我们</a></li>
                <li class="contentMenu"><a href="/wp_ContactUs.htm">联系我们</a></li>
                <li class="contentMenu"><a href="/wp_UsingHelp.htm">使用帮助</a></li>
                <li class="contentMenu"><a href="/wp_CopyrightNotice.htm">版权声明</a></li>
                <li class="contentMenu"><a href="/wp_TermsOfService.htm">服务条款</a></li>
                <li class="contentMenu"><a href="/wp_Announcement.htm">使用协议</a></li>
            </ul>
            <div class="platformContent">
                <div class="platformExplantion">
                    <div class="platformHead">网站建议</div>
                    <div class="platformText">
                        <div class="show-row">
                            <span class="text-title">邮 箱:</span><input type="text" id="txtEmail" class="cust-input" value="" placeholder="请输入您的联系邮箱" />
                        </div>
                        <div class="show-row">
                            <span class="text-title">电 话:</span><input type="text" id="txtPhone" class="cust-input" value="" placeholder="请输入您的联系电话" />
                        </div>
                        <div class="show-row">
                            <span class="text-title">页面名称:</span><input type="text" id="txtPageName" class="cust-input" value="" placeholder="请输入建议页面名称" />
                        </div>
                        <div class="show-row">
                            <span class="text-title">页面链接:</span><input type="text" id="txtPageLink" class="cust-input" value="" placeholder="请输入建议页面链接" />
                        </div>
                        <div class="show-row">
                            <span class="text-title">宝贵建议:</span><textarea id="txtaSuggst" class="cust-textarea" placeholder="请输入您的宝贵建议,1000字以内"></textarea>
                        </div>
                        <div class="show-row">
                            <button class="cust-btn-submit">提交建议</button>
                            <button class="cust-btn-reset">重    置</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <%=msBsc.WebUi.Code.QtHtmlGet.GetFloorHtml() %>
    </div>
    <!--start JS引用-->
    <script src="/jqPlugin/js/jquery-1.8.3.min.js"></script>
    <script src="/jqPlugin/js/jBase.js"></script>
    <script src="/jqPlugin/js/jBPage.js"></script>
    <script src="/jqPlugin/js/laytpl.js"></script>
    <!--end JS引用-->

    <script type="text/javascript">
        $(function () {
            $(".cust-btn-reset").click(function () {
                Reset();
            })

            $(".cust-btn-submit").click(function () {
                SubmitSuggest();
            })
        })

        function Reset() {
            $("#txtPageName,#txtPageLink,#txtaSuggst").val("");
        }

        function SubmitSuggest() {
            var custEmail = $("#txtEmail").val();
            var custPhone = $("#txtPhone").val();
            var PageLink = $("#txtPageLink").val();
            var Suggst = $("#txtaSuggst").val();
            var PageName = $("#txtPageName").val();

            if (Suggst == null || Suggst == "" || Suggst == undefined) {
                alert("建议不能为空，请填写建议内容");
                return;
            }

            if (Suggst > 1000) {
                alert("建议内容不能超过1000个字符");
                return;
            }

            var opartParam = new jsonRow();
            opartParam.AddCell("ACTION", "submitSuggest");
            opartParam.AddCell("email", custEmail);
            opartParam.AddCell("phone", custPhone);
            opartParam.AddCell("pagelink", PageLink);
            opartParam.AddCell("content", Suggst);
            opartParam.AddCell("pagename", PageName);
            ajaxComm(opartParam);
        }
    </script>
</body>
</html>
